package com.net.module.service;

import com.net.module.entity.Orders;
import com.baomidou.mybatisplus.extension.service.IService;

/**
 * <p>
 * 订单表 服务类
 * </p>
 *
 * @author 猿仁
 * @since 2023-03-02
 */
public interface IOrdersService extends IService<Orders> {

    /**
     * 下单
     * 模拟事务场景，实际业务和表设计并不是如此
     *
     * @param orders
     * @param inventoryId 库存id
     * @return
     * @author tianyu.Ge
     * @date 2023/3/2 16:50
     */
    boolean placeAnOrder(Long inventoryId,Orders orders);
}
